package com.nikhu.fx.bom;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "currency")
public class Currency {

	public Currency() {

	}

	public Currency(String symbol, String name, String countryCode,
			String countryName) {
		super();
		this.symbol = symbol;
		this.name = name;
		this.countryCode = countryCode;
		this.countryName = countryName;
	}

	@Id
	private String symbol;
	private String name;
	@Column(name = "country_code")
	private String countryCode;
	@Column(name = "country_name")
	private String countryName;

	public String getCountryName() {
		return countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	@Override
	public String toString() {
		return "symbol:" + symbol + ", name:" + name;
	}

	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCountryCode() {
		return countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}
}
